<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <#include "../common/header.ftl">




    <script type="text/javascript">

    	$(function(){
            $('#pagination').twbsPagination({
                totalPages:${result.pages},
                startPage:${result.pageNum},
                visiblePages:${result.pageSize},
                first:"首页",
                prev:"上页",
                next:"下页",
                last:"尾页",
                onPageClick:function(event, page){
                    //讲当前页设置page值
                    $("#currentPage").val(page);
                    //表单提交gjk,mb/.
                    $("#searchForm").submit();
                }
            });

    	})
    </script>
</head>
<body>

<div class="container " style="margin-top: 20px">
<#include "../common/top.ftl">
    <div class="row">
        <div class="col-sm-3">
        <#include "../common/menu.ftl">
        </div>
        <div class="col-sm-9">
            <div class="row">
                <div class="col-sm-12">
                    <h1 class="page-head-line">平台用户管理</h1>
                </div>
            </div>
            <!--高级查询--->
            <form class="form-inline" id="searchForm" action="/user/list.do" method="post">
                <input type="hidden" name="currentPage" id="currentPage" value="1">
                <div class="form-group">
                    <label for="keyword">关键字:</label>
                    <input type="text" class="form-control" id="keyword" name="keyword" value="${(qo.keyword)!}" placeholder="请输入邮箱">
                </div>

                <button id="btn_query" class="btn btn-default">查询</button>

            </form>

            <table class="table table-striped table-hover" >
                <thead>
                    <tr>

                        <th>邮箱</th>
                        <th>昵称</th>
                        <th>地区</th>
                        <th>头像</th>
                        <th>性别</th>
                        <th>签名</th>
                    </tr>
                </thead>
                <#list result.list as entity>
                   <tr>


                       <td>${entity.email}</td>
                       <td>${entity.nickName}</td>
                       <td>${entity.place}</td>
                       <td><img src="${entity.headImgUrl}" width="30px"/> </td>
                       <td>${(entity.gender==1)?string("男","女")}</td>
                       <td>${entity.sign}</td>

                   </tr>
                </#list>
            </table>
            <div style="text-align: center;">
                <ul id="pagination" class="pagination"></ul>
            </div>
        </div>
    </div>
</div>

</body>
</html>